package cn.cq.admin.entity.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 部门表
 * @TableName t_department
 */
@TableName(value ="t_department")
@Data
public class TDepartment extends BaseModel implements Serializable {
    /**
     * 部门名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * 父节点Id
     */
    @TableField(value = "pid")
    private Long pid;

    /**
     * 状态，0-不可用，1表示可用
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 排序码
     */
    @TableField(value = "sort_code")
    private Integer sortCode;

    /**
     * 备注
     */
    @TableField(value = "description")
    private String description;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}